package net.sx.minemodule.mvp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

import net.sx.minemodule.mvp.item.TestVideoItem;

/**
 * @author 11470
 */
public class TestVideoBean extends BaseModel<TestVideoItem> implements Parcelable{

    private String imgPath;
    private String peopleNumber;

    @Override
    public TestVideoItem createItem(MultiTypeAdapter adapter) {
        return new TestVideoItem(this);
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public void setPeopleNumber(String peopleNumber) {
        this.peopleNumber = peopleNumber;
    }

    public String getImgPath() {
        return imgPath;
    }

    public String getPeopleNumber() {
        return peopleNumber;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.imgPath);
        dest.writeString(this.peopleNumber);
    }

    public TestVideoBean() {
    }

    protected TestVideoBean(Parcel in) {
        this.imgPath = in.readString();
        this.peopleNumber = in.readString();
    }

    public static final Creator<TestVideoBean> CREATOR = new Creator<TestVideoBean>() {
        @Override
        public TestVideoBean createFromParcel(Parcel source) {
            return new TestVideoBean(source);
        }

        @Override
        public TestVideoBean[] newArray(int size) {
            return new TestVideoBean[size];
        }
    };
}
